#include <windows.h>
#include "SetXY.h"

HANDLE hCursor;
HWND hWnd;

void InitConsole()
{
	CONSOLE_CURSOR_INFO ConInfo;
	ConInfo.bVisible = FALSE;
	ConInfo.dwSize = 1;

	hCursor=GetStdHandle(STD_OUTPUT_HANDLE);

	SetConsoleCursorInfo(hCursor,&ConInfo);
}

void setXY(int x, int y)
{
	COORD Pos;
	Pos.X = x;
	Pos.Y = y;
	SetConsoleCursorPosition(hCursor, Pos);
}